<!DOCTYPE html>
<html>
<head>
  @include("/include/_header.html", {'title':'用户管理'}){}
  
</head>
<body>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-header">查询</div>
          <div class="layui-card-body">
          	<div class="layui-form">
	            <div class="test-table-reload-btn" style="margin-bottom: 10px;">
	            	  用户名：
	              <div class="layui-inline">
	                <input class="layui-input" name="userName" id="userName" autocomplete="off">
	              </div>
	              	姓名：
	              <div class="layui-inline">
	                <input class="layui-input" name="realName" id="realName" autocomplete="off">
	              </div>
	               	  状态：
	              <div class="layui-inline">
	               <select class="layui-input" name="status" id="status">
	                <option value=""></option>
	               	<option value="0">禁用</option>
	               	<option value="1">正常</option>
	               </select>
	              </div>
	               	所属部门：
	                 <div class="layui-inline">
	                 	<div class="layui-input-inline">
						        <input type="text" name="deptName" id="deptName" placeholder="请选择所属部门" autocomplete="off" class="layui-input" >
						        <input type="hidden" name="deptId" id="deptId">
						 </div>
						 <button class="layui-btn layui-btn-sm"  id="selectDept">请选择</button>
						 @include("/component/_select_dept.html", {'domId':'selectDept', 'inputName':'deptName', 'inputId':'deptId'}){}
	                 </div>
	                 <div class="layui-row" style="margin-top: 10px;">
						<div class="layui-col-md2 layui-col-md-offset10">
						   <button id="btnSearch" class="layui-btn">搜索</button>
	              			<button id="btnReset" class="layui-btn">重置</button>
						 </div>
	                 </div>
	             
	            </div>
             </div>
            <table class="layui-hide" id="sys-user-table" lay-filter="sys-user-table"></table> 
          	<!-- 头部工具栏 -->
            <script type="text/html" id="sys-user-toolbar">
              <div class="layui-btn-container">
                <button class="layui-btn layui-btn-sm" lay-event="doAdd" permission="sys/user/add">新增</button>
              </div>
            </script>
            <!-- 表格操作按钮 -->
            <script type="text/html" id="sys-user-tool">
				<t:a cssClass="layui-btn layui-btn-primary layui-btn-xs" layEvent="detail" label="查看"></t:a>
				<t:a cssClass="layui-btn layui-btn-xs" layEvent="edit" label="编辑"></t:a>
				<t:a cssClass="layui-btn layui-btn-danger layui-btn-xs" layEvent="del" label="删除" permission="sys:user:delete"></t:a>
            </script>
             <script type="text/html" id="online-status">
         		{{#  if(d.status == '1'){ }}
            		<button class="layui-btn layui-btn-xs">正常</button>
          		{{#  } else { }}
            		<button class="layui-btn layui-btn-danger layui-btn-xs">禁用</button>
          		{{#  } }}
        </script>
          </div>
        </div>
      </div>
    </div>
  </div>
 
  @include("/include/_container.html", {'js':'/assets/sys/user/user_list.js'}){}
</body>
</html>